<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/member_card_make.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/mall/member_card_make.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'id',
                    footer: "Foots",
                    cnName: '制卡',
                    name: 'member_card_make',
                    url: "/member_card_make/",
                    sortName: "createDate"
                },
                extend: extend,
                editFormFields: {"card_type":"","card_num":"","card_count":"","rule_type":"","cardno_prefix":"","start_no":"","random_type":"","cardno_suffix":"","time_type":"","note":"",cardno_gdrq:""},
                editFormOptions: [],
                searchFormFields: {"status":"","card_type":"","grantor":""},
                searchFormOptions: [
                    [
                      {"title":"卡模板","field":"card_type","type":"select",dataKey:'MebCardType',data:[]},
                      {"dataKey":"MebCardStatus","data":[],"title":"状态","field":"status","type":"select"},
                     {"title":"授权发卡人","field":"grantor","type":"select",dataKey:'User_Info',data:[]},
                    ]
                ],
                columns: [
                        {field:'card_batch',title:'批号',type:'string',width:170,align:'left'},
                       {field:'status',title:'状态',type:'int',bind:{ key:'MebCardStatus',data:[]},width:120,align:'left'},
                       {field:'card_type',title:'卡模板',type:'int',bind:{ key:'MebCardType',data:[]},width:120,align:'left'},
                       {field:'card_count',title:'发卡数',type:'int',width:120,align:'left'},
                       {field:'grantor',title:'授权发卡人',type:'string',width:120,align:'left'},
                       {field:'provide_count',title:'已发卡数',type:'int',width:120,align:'left'},
                       {field:'provide_count_no',title:'待发卡数',type:'int',width:120,align:'left'},
                       {field:'note',title:'发卡描述',type:'string',width:120,align:'left'},
                       {field:'creator',title:'创建人',type:'string',width:120,align:'left'},
                       {field:'createDate',title:'创建时间',type:'string',width:170,align:'left'},
                       ],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
